auto merge of #549 : alexcrichton/cargo/git-no-delete, r=brson
authorbors <bors@rust-lang.org>
Wed, 10 Sep 2014 18:27:54 +0000 (18:27 +0000)
committerbors <bors@rust-lang.org>
Wed, 10 Sep 2014 18:27:54 +0000 (18:27 +0000)
commit96d07d9aafa906015ddc13f2dc9589d066d0d9fc
tree2b91b2b240f482605d01d460a0a4defaae94532a
parent33cb518a59a32dfe7e0fe05d8062501872328afa
parent78acc7398912856fe3c7b5a3a681ca25718df564
auto merge of #549 : alexcrichton/cargo/git-no-delete, r=brson

This primarily blows away all *submodules* as well, which sometimes can be quite
large and take some time to update. Instead, re-use an existing checkout, just
reset it to the right revision if possible.

Also, move the submodule update step to occur unconditionally to account for
corrupt submodule checkouts or interrupted downloads. This update step should be
much faster than `git submodule update` because we're using libgit2, so yay!
tests/test_cargo_compile_git_deps.rs